package demo04_other

import Demo03_implicitContext._

case class Flower(){
  def send(name:String) = {
    println(s"把花送给${name}")
  }
}

object Demo03_implicit_parameter {

  def sendToGF(name:String)(implicit flower:Flower) = {
    flower.send(name)
  }

  def sendToBF(name:String)(implicit flower:Flower) = {
    flower.send(name)
  }

  def main(args: Array[String]): Unit = {
    sendToGF("郭妹妹")
    sendToBF("习大大")
  }

}
